]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dialog: Wrap titles
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 7 Nov 2024 15:23:48 +0000 (16:23 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 23 Nov 2024 12:17:31 +0000 (13:17 +0100)
Dialogs should not use titles that are too long to fit, but if
they do, wrapping is more appropriate than ellipsizing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3540>
(cherry picked from commit fbaead359a86186b30ec78c8fab1ff741ecb6b2b)

js/ui/dialog.js

index 8db4eb5ce6d164b357262f3c7a2f77685de3b92e..5fed54e215e373dd9d272d1005ea84ab3d789f8c 100644 (file)
@@ -175,6 +175,9 @@ export const MessageDialogContent = GObject.registerClass({
         this._title = new St.Label({style_class: 'message-dialog-title'});
         this._description = new St.Label({style_class: 'message-dialog-description'});
 
+        this._title.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+        this._title.clutter_text.line_wrap = true;
+
         this._description.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
         this._description.clutter_text.line_wrap = true;